# -*- coding: utf-8 -*-

def _utf8(string):
  return unicode(string, "utf-8")

#Texts:

TXT_HELP = _utf8(
'''tweerminal -- posix-command-like message manager app for twitter
  SECTIONS: usage / options / advise
  execute \'tweerminal --help SECTION\' for especific help
Copyleft 2010 Qcho'''
)

TXT_HELP_S = {}

TXT_HELP_S['usage'] = _utf8(
'''tweerminal -- posix-command-like message manager app for twitter
USAGE:
  to authorize a user (using option -a,--auth):
    tweerminal (-a/--auth) USER
    (It's mandatory to do this if you want too use this app)
  to search on twitter (using option -s,--srch):
    tweerminal [OPTIONS] (-s/--srch) "STRING" [OPTIONS]
  to monitor your timeline (using option -m,--mon):
    tweerminal [OPTIONS] (-m/--mon) USER [OPTIONS]
  to post tweets (using option -p,--post):
    tweerminal [OPTIONS] (-p/--post) USER "MENSAJE" [OPTIONS]
  to work individually with tweets (with option -t,--twt)
    tweerminal [OPTIONS] (-t/--twt) USER TWEET_ID [OPTIONS]
  [for help with any other option execute \'tweerminal --help options\']
Copyleft 2010 Qcho'''
)

TXT_HELP_S['options'] = _utf8(
'''tweerminal -- posix-command-like message manager app for twitter
OPTIONS:
 GENERAL:
  -s,--srch "STRING"
      search mode.
  -m,--mon USER
      monitor mode.
  -p,--post USER "MESSAGE"
      post mode.
  -t,--twt USER TWEET_ID
      tweet mode (individual tweet).
  -nc,--no-color
      avoid to display in colors.
  -h,--help [MODE]
      show general help if no MODE parameter given.
      MODE could be: ( -s / -m / -p / -t ) or any section.
  -v,--version
      show app version.
 ADDITIONAL:
  [for help with any other option execute \'tweerminal --help MODE\']
Copyleft 2010 Qcho'''
)

TXT_HELP_S['advise'] = _utf8(
'''tweerminal -- posix-command-like message manager app for twitter
ADVISE:
  - there are some character problems while using a unix-terminal.
    please, remember to replace the shown characters on this table in your
    messages:
         -----------------------
        | CHARACTER |  REPLACE  |
        |-----------|-----------|
        |     !     |    \!     |
        |     "     |    \\"     |
        |     \\    |    \\\\     |
         -----------------------
  - to start using this app, you should authorize it by executing:
                        tweerminal (-a/--auth) USER
    (be sure to be able to access a web browser just this time to enter a given
     URL, acquire a PIN and write it back)
  - you will be asked for your password only when you try to upload an image,
    video or document. (tweerminal does NOT store any of your passwords)
Copyleft 2010 Qcho'''
)

TXT_HELP_S['-s'] = _utf8(
'''tweerminal -- posix-command-like message manager app for twitter
 SEARCH MODE (-s,--srch):
  -lm,--lim LIMIT
      set a limit to the number of tweets to show (100 at max).
  -pg,--pag PAGE
      set the page to show (considering limit).
Copyleft 2010 Qcho'''
)

TXT_HELP_S['--srch'] = TXT_HELP_S['-s']

TXT_HELP_S['-m'] = _utf8(
'''tweerminal -- posix-command-like message manager app for twitter
 MONITOR MODE (-m,--mon):
  -lm,--lim LIMIT
      set a limit to the number of tweets to show (200 at max).
  -pg,--pag PAGE
      set the page to show (considering limit).
  -us,--user (USER/ID)
      show the timeline of the selected user (as long as you can access it using
      your account).
  -me,--mentions
      show tweets that mentions you.
  -dr,--dir-rec
      show a list with recieved direct messages.
  -ds,--dir-sent
      show a list with sent direct messages.
  -ll,--lists
      show all your lists and their IDs.
  -ls,--list LIST
      show tweets from selected list.
  -nr,--no-retweets
      shows only your contacts messages, w/o retweets.
Copyleft 2010 Qcho'''
)

TXT_HELP_S['--mon'] = TXT_HELP_S['-m']

TXT_HELP_S['-p'] = _utf8(
'''tweerminal -- posix-command-like message manager app for twitter
 POST MODE (-p,--post):
  -g,--geo LATITUDE:LONGITUDE
      geotag tweets at given coordinates.
      latitude should be between -90.0 and +90.0 (S[-] to N[+])
      longitude should be between -180.0 and +180.0 (W[-] to E[+])
  -ir,--inresponse TWEET_ID
      post given tweet as a response to a previuos tweet (its neccesary to
       include @USER on the tweet body for this option to work properly)
  -u,--url  
      shorten an url using tinyurl and post it inside your tweet.
      (by default, it will be posted at the end of the given message, but by
       using the text {url} it can be manually positioned)
  -i,--img PATH/TO/IMAGE
      upload a given image to twitpic and post it.
      (by default, it will be posted at the beginning of the given message, but
       by using the text {img} it can be manually positioned)
  -vd,--vid PATH/TO/VIDEO
      upload a given video to twitvid and post it.
      (by default, it will be posted at the beginning of the given message, but
       by using the text {vid} it can be manually positioned)
  -dc,--doc PATH/TO/DOC
      upload a given document to twitdoc and post it.
      (by default, it will be posted at the beginning of the given message, but
       by using the text {doc} it can be manually positioned)
  -d,--dir-msg CONTACT
      send message as a direct message, not as a tweet.
Copyleft 2010 Qcho'''
)

TXT_HELP_S['--post'] = TXT_HELP_S['-p']

TXT_HELP_S['-t'] = _utf8(
'''tweerminal -- posix-command-like message manager app for twitter
 TWEET MODE (-t,--twt):
  -rt,--retweet
      retweet selected tweet (by TWEET_ID)
  -dl,--delete
      delete selected tweet (by TWEET_ID)
  -dd,--delete-dir
      delete selected direct message (by TWEET_ID)
Copyleft 2010 Qcho'''
)
TXT_HELP_S['--twt'] = TXT_HELP_S['-t']

TXT_USAGE = _utf8(
'''To start you should select a mode:
  search mode:
        Using parameter -s, --srch
        Used to search tweets.
  monitor mode:
        Using parameter -m, --mon
        Used to monitor your timeline on twitter.
  post mode:
        Using parameter -p, --post
        Used to post new messages.
  tweet mode:
        Using parameter -t, --twt
        Used to manage tweets individually.
For more information about how to use this app execute \'tweerminal --help\''''
)

TXT_VERSION = _utf8(
'''tweerminal -- unix-command-like message manager app for twitter
  current version: 0.9 (beta)
Copyleft 2010 Qcho'''
)


#Gimme:
GMM_PIN = _utf8("Please, visit the following URL, access twitter and enter here the retrieved PIN:")
GMM_PSWD = _utf8("Please, enter your password to upload {media}: ")

#Header:
HDR_SRCH_SAID = _utf8("{contact} said:")
HDR_CNTC_SAID = _utf8("{contact} ({contact_id}) said:")
HDR_RTD = _utf8("{rtd} ({rtd_id}) was retweeted by {rtr} ({rtr_id}):")
HDR_TOLD_U = _utf8("{contact} ({contact_id}) told you:")
HDR_U_TOLD = _utf8("You told to {contact} ({contact_id}):")

#Advice:
ADV_SCCS_ADD = _utf8("Added {this} : ")
ADV_SCCS_WAS = _utf8("Your message was {done}")
ADV_SCCS_AUTH = _utf8("User successfully registered!")
ADV_UPLD = _utf8("Uploading {media}... (please wait)")
ADV_AS_DM = _utf8("Stablished as a direct message")

#Warning:
WRN_BETA = _utf8("(Please, keep in mind this app is still a beta release)")
WRN_HELP = _utf8("For more information execute with parameter '--help'.")
WRN_DM_NO = _utf8("Direct Messages can't have {this}... Will be omitted")
WRN_ONLY_PRMS = _utf8("This mode only works with additional parameters")

#Error:
ERR_ABRT = _utf8("Aborting!")
ERR_HTTP = _utf8("HTTP Error : {code}")
ERR_URL = _utf8("URL Error : {code}")
ERR_STND = _utf8("Error : [{code}] {error}")
ERR_UPLD = _utf8("Error uploading {media} : [{code}] {error}")
ERR_DCLR = _utf8("Bad declaration. ") + WRN_HELP
ERR_NO_PRMS = _utf8("Not enough parameters. ") + WRN_HELP
ERR_OVER_140 = _utf8("Message exceeds 140 characters... ") + ERR_ABRT
ERR_CASE_110 = _utf8("In case of {media} messages should not exceed 110 characters... ") + ERR_ABRT
ERR_AUTH = _utf8("There was an error while getting access token [maybe a wrong PIN?], please retry")
ERR_NO_OPTN = _utf8("You haven-t selected any option")
ERR_GTAG_NDED = _utf8("Next to the '-g'/'--geo' parameter should be LATITUDE:LONGITUDE")
ERR_NO_TOKN = _utf8("Not authorizathion token found for user '{user}'.\nPlease, execute with the parameter '--auth {user}' to get one.")

#Words (and some Plurals):
WRD_SNT = _utf8('sent')
WRD_PST = _utf8('posted')
WRD_RTD = _utf8('retweeted')
WRD_DLD = _utf8('deleted')
WRD_URL = _utf8('shortened URL')
WRD_IMG = [_utf8('image'),_utf8('images')]
WRD_VID = [_utf8('video'),_utf8('videos')]
WRD_DOC = [_utf8('document'),_utf8('documents')]
WRD_GTG = _utf8('geotag')
WRD_RSP = _utf8('response')
WRD_AGO = _utf8('about {time} ago')
WRD_MON = [_utf8('month'),_utf8('months')]
WRD_WEK = [_utf8('week'),_utf8('weeks')]
WRD_DAY = [_utf8('day'),_utf8('days')]
WRD_MIN = [_utf8('minute'),_utf8('minutes')]
WRD_HOR = [_utf8('hour'),_utf8('hours')]
WRD_NOW = _utf8('right now')
WRD_FRM = _utf8('from')
